<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "{{%single_page}}".
 *
 * @property integer $id
 * @property string $title
 * @property string $keywords
 * @property string $desc
 * @property string $content
 * @property integer $service_id
 * @property integer $created_uid
 * @property integer $last_change
 * @property integer $isdel
 */
class SinglePage extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%single_page}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['content'], 'required'],
            [['content'], 'string'],
            [['service_id', 'created_uid', 'last_change', 'isdel'], 'integer'],
            [['title', 'keywords', 'desc'], 'string', 'max' => 255],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'title' => 'Title',
            'keywords' => 'Keywords',
            'desc' => 'Desc',
            'content' => 'Content',
            'service_id' => 'Service ID',
            'created_uid' => 'Created Uid',
            'last_change' => 'Last Change',
            'isdel' => 'Isdel',
        ];
    }
}
